Skip to content

Add Doc Detective + Promptless blog post#300

Open
InlinePizza wants to merge 1 commit intomainfrom
blog/doc-detective
Open

Add Doc Detective + Promptless blog post#300
InlinePizza wants to merge 1 commit intomainfrom
blog/doc-detective

Conversation

@InlinePizza
Copy link
Contributor

Summary

  • Adds a new product updates blog post announcing Doc Detective support in Promptless
  • Content sourced from the Notion draft and adapted to the site's MDX blog format
  • No images included yet — the Notion source image needs to be uploaded to S3

Test plan

  • Verify the post renders correctly on the local dev server
  • Confirm frontmatter fields (title, date, section) display properly
  • Review content for any needed edits before publishing
  • Upload and add the hero image once available

Announce Doc Detective support in Promptless as a product update.
@vercel
Copy link

vercel bot commented Mar 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
promptless-docs Ready Ready Preview, Comment Mar 12, 2026 5:07pm

Request Review

Copy link

@hawkeyexl hawkeyexl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it overall, but it doesn't address why you might need Doc Detective is you already have Promptless, how they're two sides of the same coin. Promptless reduces drift, but Doc Detective verified that any content, human-created or AI-generated, is accurate.


Back in August 2024, Manny Silva was one of the first technical writers from whom we ever got feedback about Promptless. Back then, he'd already been working on Doc Detective for years, and it seemed like Promptless and Doc Detective would work perfectly together.

**Today, we released Doc Detective support in Promptless**, meaning that Promptless can create/update Doc Detective tests automatically and fix documentation or escalate software issues whenever Doc Detective tests break!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use "fail" instead of "break". When features break, tests fail.


## Use case 5: Authenticated flows

Most useful documentation covers features behind a login. Doc Detective handles this with cookie management (`saveCookie` / `loadCookie`) and has a Clerk integration for injecting test tokens. You can test documented procedures for authenticated features without manual login steps.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have an official Clerk integration, but I'm working on that feature request we discussed.


It handles the messiness of real web applications too. You can configure wait conditions that monitor network activity and DOM mutations, so the test only proceeds once the page has actually finished loading. Useful when your single-page app is still fetching data three seconds after navigation.

The screenshot capability goes further than just capturing images. Doc Detective compares screenshots against reference images pixel by pixel. You set a variation threshold (say 5%), and if the current state of the UI has drifted beyond that, the test flags it. So when someone changes the product and the docs still show the old screenshots, you find out from your test suite, not from a confused user filing a support ticket.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repeated in its own section later on.


A specification contains tests, each test is a sequence of steps, and each step is an action:

```json

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole object is completely wrong. We haven't used the "action" key since v2.

}
```

You can also embed tests directly in Markdown as comments, or use automatic markup detection. Doc Detective can parse instructions like "Go to [the dashboard](https://app.example.com/)" and generate the corresponding test action from the Markdown itself.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're likely going to need code syntax here so the markdown doesn't render.


## Where does it fit in your workflow?

Doc Detective runs from the command line. Put it in your CI/CD pipeline. Every time someone changes the docs or the product, the doc tests run. Failures show up alongside your code test failures. The coupling between docs and product becomes something you actively monitor, not something that silently degrades.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Doc test failures show up..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants